package cn.ray.springframework.beans.factory.support;


import cn.ray.springframework.beans.BeansException;
import cn.ray.springframework.core.io.Resource;
import cn.ray.springframework.core.io.ResourceLoader;

import java.beans.Beans;

//Bean定义（beanDefinition）的读取接口
public interface BeanDefinitionReader {
    //获取registry和resourceloader
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    //加载bean定义
    void loadBeanDefinitions(Resource resource)throws BeansException;

    void loadBeanDefinitions(Resource... resources)throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws  BeansException;
}
